package com.situ.student.service.impl;

import com.situ.student.dao.UserDao;
import com.situ.student.dao.impl.UserDaoImpl;
import com.situ.student.model.User;
import com.situ.student.service.UserService;
import com.situ.student.util.BeanFactory;

public class UserServiceImpl implements UserService {
    private final UserDao userDao = BeanFactory.getBean(UserDaoImpl.class);

    @Override
    public User findByUsername(String username) {
        return userDao.findByUsername(username);
    }
}
